﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ShopNPC : NPC
    {
        private string item;
        public string Item
        {
            get => item;
            set => item = value;
        }
        public ShopNPC() { }
        public ShopNPC(string name, Npctype type, string item) : base(name, type)
        {
            this.item = item;

        }
        
        public override void Speak()
        {
            Console.WriteLine("NPC:{0},我在贩卖{1}商品", this.Name, this.item);
        }
        public void wq(string task)
        {
            Console.WriteLine($"我是武器NPC，给你一个任务：{task}");

        }
        public void cl(string task)
        {
            Console.WriteLine($"我是材料NPC，给你一个任务：{task}");

        }
        public void sw(string task)
        {
            Console.WriteLine($"我是食物NPC，给你一个任务：{task}");

        }
    }

}
